//#define WPARRAYSIZE	16

typedef struct
{
   double dLatDeg;    // Latitude  (degrees)
   double dLonDeg;    // Longitude (degrees)
   double dAltMeters; // Altitude  (meters)
} COORDINATE;


typedef struct
{
	double dLatDeg;
	double dLonDeg;
	double dSpeedMps;
} WAYPT;

typedef struct
{
	double dLatDeg;
	double dLonDeg;
} POSITION;

typedef struct wpnode
{
	WAYPT wp;
	struct wpnode *prev;
	struct wpnode *next;
}WPNODE;	

void waypoints_WriteFile(char *filespec, int count, WAYPT *wp);
void waypoints_ReadFile(char *filespec, int wpcount, WAYPT *wp);
void waypoints_PrintWaypoints(WAYPT *wp, int count);
void waypoints_PrintWpt(WAYPT wpt,int num);

POSITION waypoints_InitPosition();

